<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<script type="text/javascript" src="js/plugin/template.js" ></script>
	<body>
		<div id='content'></div>
		<script type="text/template" id='test'>
			
			
			<ul>
			    {{each list as value i}}
			        <li>索引 {{i + 1}} ：{{value}}</li>
			    {{/each}}
			</ul>
			
		</script>
		<script type="text/javascript">
		    var dat={list:['文艺', '博客', '摄影', '电影', '民谣', '旅行', '吉他']}
			var data = {
			   
			    list: ['文艺', '博客', '摄影', '电影', '民谣', '旅行', '吉他']
			};
			var html = template('test', dat);
			document.getElementById('content').innerHTML = html;
		</script>
	</body>
</html>
